package org.idea.qiyu.framework.docker.compose.controller;

import org.idea.qiyu.framework.docker.compose.dao.UserDao;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author linhao
 * @Date created in 2:37 下午 2021/7/9
 */
@RestController
@RequestMapping(value = "/test")
public class TestController {

    @Resource
    private UserDao userDao;

    @GetMapping(value = "/do-test")
    public String doTest(){
        System.out.println("do test");
        return "success";
    }

    @GetMapping(value = "/add-user")
    public void addUser(){
        userDao.addUser();
    }
}
